﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;
using System.Web;
using Project.Engine.Utilities;
using Project.Module.DAO.BL;
using Project.Engine.Control;
using Project.Module.Model;

namespace Project.Module.View
{
    public class GioHangView : BasePageRazor
    {
        public string displayuser = string.Empty;
        public List<GioHangModel> gioHang = null;
        private GioHangBL gioHangBl = new GioHangBL();

        protected override void InitializePage()
        {
            base.InitializePage();
            if (Session["username"] != null && ((string)(Session["username"])).Length > 0)
            {
                this.displayuser = (string)(Session["username"]);
                this.gioHang = gioHangBl.GetGioHangByUsername(this.displayuser);
            }
        }
    }
}
